package com.ruoyi.web.controller.tool;

import com.ruoyi.common.translation.annotation.Translation;
import com.ruoyi.common.translation.constant.TransConstant;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;


@EqualsAndHashCode(callSuper = true)
@Data
@Schema(description = "用户实体")
public class UserEntity extends BaseEntity {
    @Schema(title = "用户ID")
    @Translation(type = TransConstant.USER_ID_TO_NICKNAME,/* mapper = "nickName",*/ target = "nickName")
    private Integer userId;

    @Schema(title = "用户名称")
    private String username;

    @Schema(title = "用户密码")
    private String password;

    @Schema(title = "用户手机")
    private String mobile;
//    private Map<String, String> params = new HashMap<>();


    public UserEntity() {

    }

    public UserEntity(Integer userId, String username, String password, String mobile) {
        this.userId = userId;
        this.username = username;
        this.password = password;
        this.mobile = mobile;
    }

}
